package day18;

import java.io.FileWriter;
import java.io.IOException;


public class FileWriterDemo {

	public static void main(String[] args) {
		FileWriter fw = null;
		try {
			fw = new FileWriter("demo.txt");
			fw.write("abdcdeedeeeeeeee");
			fw.flush();
			System.out.println("over");
		} catch (IOException e) {
			e.printStackTrace();
		} finally {
			if (null != fw) {
				try {
					fw.close();
				} catch (IOException e2) {
					e2.printStackTrace();
				}
			}
		}
	}
}
